﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace STF.Blog.Model
{/// <summary>
/// 文章类别
/// </summary>
    public class Category:BaseEntity
    {

        [Required(ErrorMessage = "{0}不能为空")]
        [StringLength(256), Column(TypeName = "nvarchar(256)")]
        [Display(Name = "类别名称")]
        public string Title { get; set; }

        [Required(ErrorMessage = "{0}不能为空")]
        [Display(Name ="父级类别Id")]
        public int ParentId { get; set; }
    }
}
